package com.itheima.innerclass.test5;

public class Test5Innerclass {
    public static void main(String[] args) {
        //
        new Inter() {
            @Override
            public void show() {
                System.out.println("我是匿名内部类中的show方法");
            }
        }.show();

        Inter2 i = new Inter2() {
            @Override
            public void show1() {
                System.out.println("show1......");
            }

            @Override
            public void show2() {
                System.out.println("show2......");
            }
        };
        i.show1();
        i.show2();
    }
}

interface Inter{
    void show();
}

interface Inter2{
    void show1();
    void show2();
}